<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="com.demo.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单个用户信息</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
	<!-- 顶部导航栏开始 -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target="#nav">
				<span class="sr-only">Toggle</span> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#"> <img src="images/logo.gif"
				style="height: 50px" />
			</a>
		</div>
	</div>
	</nav>
	<!-- 顶部导航栏结束 -->
<div style="height: 150px; width: 100%;"></div>

	<%
		User user = (User) request.getAttribute("user");
	%>
	<form action="userServlet" method="post">
	<input type="hidden" name="type" value="upd"/>
	<input type="hidden" name="userId" value="<%=user.getUser_id() %>"/>
	<table border="1" align="center">
		<tr>
			<td>用户名</td>
			<td><input type="text" name="username"
				value="<%=user.getUser_name()%>" /></td>
		</tr>
		<tr>
			<td>密码</td>
			<td><input type="text" name="userpwd"
				value="<%=user.getUser_pwd()%>" /></td>
		</tr>
		<tr>
			<td>性别</td>
			<td><input type="text" name="sex"
				value="<%=user.getSex()%>" /></td>
		</tr>
		<tr>
			<td>邮箱</td>
			<td><input type="text" name="email"
				value="<%=user.getEmail()%>" /></td>
		</tr>
		<tr>
			<td>地址</td>
			<td><input type="text" name="address"
				value="<%=user.getAddress()%>" /></td>
		</tr>
		<tr>
			<td>联系方式</td>
			<td><input type="text" name="mobilephone"
				value="<%=user.getMobilephone()%>" /></td>
		</tr>
		<tr>
		     <td colspan="6">
		       <input type="submit" value="修改"/>
		     </td>
		</tr>
	</table>
	</form>
</body>
</html>